<%-- 
    Document   : SessionValueAcross
    Created on : Jun 17, 2013, 7:54:42 PM
    Author     : Acer
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Session Example</title>
    </head>
    <body>
        <%
                    String val = request.getParameter("name");
                    if (val != null) {
                        session.setAttribute("name", val);
                    }
        %>
        <h1>Session Example</h1>
        <a href="sessionExamplePage1.jsp">Page 1</a>
        <a href="sessionExamplePage2.jsp">Page 2</a>
    </body>
</html>
